var states = [{code: 1, text: '账号开启' }, {code: 2, text: '账号锁定'}];
mini.parse();
//通过缓存获取用户信息
var item2 = localStorage.getItem("item");
//得到页面上的表单
var form = new mini.Form("form1");  
//赋值
function SetData(){
//	var userInfo = JSON.parse(item2);
//	form.setData(userInfo);
	//查看用户
	$.ajax({
         url: ajaxUrl + "/user/SerchUserInfoId.do",
         success: function (data) {
             console.log(data);
             var o = mini.decode(data);
             var userInfoData = o.data;
             //时间格式转化
             if(userInfoData.loginDate){
        		 userInfoData.loginDate = formatDate(userInfoData.loginDate);
        	 }else{
        		 userInfoData.loginDate = '';
        	 }
        	 if(userInfoData.createDate){
        		 userInfoData.createDate = formatDate(userInfoData.createDate);
        	 }else{
        		 userInfoData.createDate = '';
        	 }
             form.setData(userInfoData);
             form.setChanged(false);
         },
         error:function(data){
             alert('失败');
         }
     });
}